//
//  DeleteButton.m
//  UI15_太平洋电脑网
//
//  Created by dllo on 16/3/31.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "DeleteButton.h"

@interface DeleteButton ()

@end

@implementation DeleteButton

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    button.frame = CGRectMake(414-40, 20, 20, 20);
    button.backgroundColor = [UIColor blackColor];
    [button addTarget:self action:@selector(rightAcion:) forControlEvents:UIControlEventTouchUpInside];
    [button setImage:[UIImage imageNamed:@"iconfont-xiayige.png"] forState:UIControlStateNormal];
    [self.view addSubview:button];
}

- (void)rightAcion:(UIButton *)button{
    [self dismissViewControllerAnimated:YES completion:^{}];
}






- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/





















@end
